
Type Viewport Extends BaseObject
	Global _list:TList
	
	Method New()
		If Self._list = Null Then Self._list = New TList
		Self._list.AddLast(Self)
	End Method
	
rem
bbdoc: Sets the initial background colour of the viewport (before rendering). 
endrem
	Method setBackgroundColour(r:Float, g:Float, b:Float, a:Float = 1.0)
		o_setBackgroundColour(Self._ptr, r, g, b, a)
	End Method
	
rem
bbdoc: Gets one of the actual dimensions of the viewport, a value in pixels. 
endrem
	Method getActualWidth:Int()
		Return o_getActualWidth(Self._ptr)
	End Method
	
rem
bbdoc: Gets one of the actual dimensions of the viewport, a value in pixels. 
endrem
	Method getActualHeight:Int()
		Return o_getActualHeight(Self._ptr)
	End Method
	
rem
bbdoc: Sets the camera to use for rendering to this viewport. 
endrem
	Method setCamera(cam:Camera)
		o_setCamera(self._ptr, cam._ptr)
	End Method
End Type